package com.design.pattern.command.projection3;


public class ConcreteCommandExcutor  implements CommandExecutor {
    /**
     * 执行者身份
     */
    String name;

    public ConcreteCommandExcutor(String name) {
        this.name = name;
    }

    @Override
    public void execute(Command command) {
        System.out.println(name+"执行了命令:"+command.getContent());
    }

}
